﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Windvoice.Blog.Model
{
    public class CategoryInfo
    {
        private int _ID;
        private string _NameCN;
        private string _NameEN;
        private string _DescriptionCN;
        private string _DescriptionEN;

        public CategoryInfo()
        { }

        public CategoryInfo(DataRow row)
        {
            _ID = int.Parse(row["id"].ToString());
            _NameCN=row["namecn"].ToString();
            _NameEN=row["nameen"].ToString();
            _DescriptionCN=row["descriptioncn"].ToString();
            _DescriptionEN = row["descriptionen"].ToString(); 
        }

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string NameCN
        {
            get { return _NameCN; }
            set { _NameCN = value; }
        }
        public string NameEN
        {
            get { return _NameEN; }
            set { _NameEN = value; }
        }
        public string DescriptionCN
        {
            get { return _DescriptionCN; }
            set { _DescriptionCN = value; }
        }
        public string DescriptionEN 
        {
            get { return _DescriptionEN; }
            set { _DescriptionEN=value; }
        }
    }
}
